function [vareas, veas, vebs, vephis, vex0s, vey0s, vx1s, vx2s, vy1s, vy2s, vxheights, vyheights, objs] = ShiftIndexes(vareas, veas, vebs, vephis, vex0s, vey0s, vx1s, vx2s, vy1s, vy2s, vxheights, vyheights, objs, nfindobjs)

len = length(objs);

for i = 1:len
    areas = vareas(i,:);
    eas = veas(i,:);
    ebs = vebs(i,:);
    ephis = vephis(i,:);      
    ey0s = vey0s(i,:);
    ex0s = vex0s(i,:);
            
    x1s = vx1s(i,:);
    x2s = vx2s(i,:);
    y1s = vy1s(i,:);
    y2s = vy2s(i,:);
    
    xheights = vxheights(i,:);
    yheights = vyheights(i,:);   
    
    vareas(i,:) = 0;
    veas(i,:) = 0;
    vebs(i,:) = 0;
    vephis(i,:) = 0;            
    vey0s(i,:) = 0;
    vex0s(i,:) = 0;
            
    vx1s(i,:) = 0;
    vx2s(i,:) = 0;
    vy1s(i,:) = 0;
    vy2s(i,:) = 0;
            
    vxheights(i,:) = 0;
    vyheights(i,:) = 0;      
    
    ncount = 0;
    
	for j = 1:nfindobjs
        
		if ex0s(j) > 0 && ey0s(j) > 0
             ncount = ncount + 1;                          
            
             vareas(i,ncount) = areas(j);
             veas(i,ncount)   = eas(j);
             vebs(i,ncount)   = ebs(j);
             vephis(i,ncount) = ephis(j);            
             vey0s(i,ncount)  = ey0s(j);
             vex0s(i,ncount)  = ex0s(j);
            
             vx1s(i,ncount)   = x1s(j);
             vx2s(i,ncount)   = x2s(j);
             vy1s(i,ncount)   = y1s(j);
             vy2s(i,ncount)   = y2s(j);
            
             vxheights(i,ncount) = xheights(j);
             vyheights(i,ncount) = yheights(j);      			                                    
         end
    end
 
    objs(i) = ncount;
end
